package com.fita.admin.service.data;

import com.demo2do.core.entity.page.Page;
import com.demo2do.core.persistence.support.QueryFilter;
import com.fita.admin.service.DataService;
import com.fita.entity.data.VehicleParameter;

import java.util.List;

/**
 * 
 * @author cuteHU
 *
 */
public interface VehicleParameterService extends DataService<VehicleParameter> {

    /**
     * @return
     */
    int count();

    /*
     * (non-Javadoc)
     * 
     * @see com.fita.admin.service.DataService#listByPage(java.lang.Class,
     * com.demo2do.core.entity.page.Page)
     */
    List<VehicleParameter> listByPage(Class<VehicleParameter> clazz, Page page);

    /**
     * @param class1
     * @param preparedFilter
     * @return
     */
    int countSearch(Class<VehicleParameter> class1, QueryFilter preparedFilter);

    /**
     * @param vehicleParameter
     */
    void createVehicleParameter(VehicleParameter vehicleParameter);

    /**
     * @param vehicleParameter
     */
    void activate(VehicleParameter vehicleParameter);

    /**
     * @param vehicleParameter
     */
    void freeze(VehicleParameter vehicleParameter);

    /**
     * @param id
     * @param vehicleParameter
     */
    void update(Long id, VehicleParameter vehicleParameter);

}
